home *** CD-ROM | disk | FTP | other *** search
- defint a-z
-
- declare function pdqvali(st$)
- declare sub delstr alias "b$stdl" (work$)
-
- dim users$(1 to 5000)
- dim down(1 to 5000)
-
- cu=5000
-
- print "TOPDROP 1.00 Copyright 1993 NUIQ SOFTWARE INC All Rights Reserved"
- print "Powerboard BBS Top Carrier Dropper List Creator"
- print
-
- a$=dir$("logs\callers.*")
- return$=chr$(13)
-
- do while len(a$)
- print space$(79);return$;
- print "Reading LOGS\"a$
- open "logs\"+a$ for input shared as 1
- cl=0
- do until eof(1)
- cl=cl+1
- if cl mod 100=0 then print "Line "str$(cl);" ";return$;
- line input #1, ln$
- if left$(ln$,2)=">>" and instr(ln$,"Back")=0 then
- ' d=instr(26,ln$,"User")
- d=-1
- if d then
- d=instr(23,ln$,":")
- ad=instr(d+1,ln$,":")
- if ad then d=ad
- if d then
- t$=mid$(ln$,d+2)
- d=instr(t$,"Logged On")
- t$=ltrim$(left$(t$,d-2))
- for cu=1 to usrs
- if users$(cu)=t$ then goto dl0
- next
- usrs=usrs+1
- cu=usrs
- users$(cu)=t$
- end if
- end if
- end if
- d=instr(26,ln$," ")
- if d then
- if mid$(ln$,26)="Carrier lost." then
- down(cu)=down(cu)+1
- end if
- end if
- dl0:
- loop
- close 1
- a$=dir$
- loop
- print
- print "Sorting . . . ";
-
- x=0
- do until x=>usrs
- x=x+1
- if down(x)=0 then
- for d=1 to usrs
- if down(d) then
- down(x)=down(d)
- users$(x)=users$(d)
- delstr users$(d)
- down(d)=0
- goto dl
- end if
- next
- delstr users$(x)
- down(x)=0
- end if
- dl:
- loop
-
- x=0
- do until x=>usrs
- x=x+1
- if down(x)=0 then
- for y=usrs to 1 step -1
- if y>x then
- if down(y) then
- users$(x)=users$(y)
- down(x)=down(y)
- down(y)=0
- delstr users$(y)
- if y=usrs then usrs=usrs-1
- exit for
- end if
- end if
- next
- end if
- loop
-
- for x=1 to usrs
- if down(x)=0 then usrs=x-1:exit for
- next
-
- do
- outoforder=0
- for x=1 to usrs-1
- if down(x)<down(x+1) then
- swap down(x), down(x+1)
- swap users$(x), users$(x+1)
- outoforder=-1
- end if
- next
- loop while outoforder
-
- print "Done!"
-
- print
-
- c$=command$
- a=pdqvali(c$)
- if a<1 then a=20
- open "topdrop.asc" for output as 2
- print #2, "TOPDROP 1.00 Copyright 1993 NUIQ SOFTWARE INC All Rights Reserved"
- print #2, ""
- for x=1 to usrs
- if x>a then exit for
- print #2, left$(users$(x)+space$(30),30)" "down(x)
- next
- close 2
-
- print "Top "str$(a)" carrier droppers written to TOPDROP.ASC."
- print
-